package com.iot.core.dao.Impl;

import java.util.List;

import com.iot.core.dao.ITransationRepository;
import com.iot.core.model.Transaction;
import com.witsight.cassandra.dao.impl.CassandraCommonRepositoryImpl;
import com.witsight.platform.model.BoEntity;
/**
 * 
 * @author penght
 *
 */
public class TransactionRepositoryImpl extends CassandraCommonRepositoryImpl implements ITransationRepository {

	/**
	 * POS
	 */
	private final static String POS = "pos";
	/**
	 * RESOLUTION
	 */
	private final static String RESOLUTION = "resolution";
	/**
	 * KEY
	 */
	private final static String KEY = "transaction.findTransaction";
	@Override
	public List<Transaction> findAllByPosAndResolution(Integer pos, Integer resolution) {
		BoEntity params = new BoEntity();
		params.put(POS, pos);
		params.put(RESOLUTION, resolution);
		return super.findSqlAllByParams(KEY, params);
	}
}
